using System;
using System.Collections.Generic;
using System.Text;
using OneSoft.EntityCore;

namespace BySoft.Server.Common.Schema
{
	[Serializable]
	public class StStockmanagematdetailTable : TableInfo
	{
		public const string C_TABLENAME = "St_Stockmanagematdetail"; 

		public const string C_STOCKMANAGEMATDETAILID = "STOCKMANAGEMATDETAILID";
		public const string C_MATERIALID = "MATERIALID";
		public const string C_INSTOCKYEAR = "INSTOCKYEAR";
		public const string C_INSTOCKMONTH = "INSTOCKMONTH";
		public const string C_PRICE = "PRICE";
		public const string C_LASTINSTOCKNUM = "LASTINSTOCKNUM";
		public const string C_LASTINSTOCKAMOUNT = "LASTINSTOCKAMOUNT";
		public const string C_THISINSTOCKNUM = "THISINSTOCKNUM";
		public const string C_THISINSTOCKAMOUNT = "THISINSTOCKAMOUNT";
		public const string C_OUTSTOCKNUM = "OUTSTOCKNUM";
		public const string C_OUTSTOCKAMOUNT = "OUTSTOCKAMOUNT";
		public const string C_BALANCESTOCKNUM = "BALANCESTOCKNUM";
		public const string C_BALANCESTOCKAMOUNT = "BALANCESTOCKAMOUNT";
				
		public StStockmanagematdetailTable()
		{
			_tableName ="St_Stockmanagematdetail";
		}

		protected static StStockmanagematdetailTable _current;

		public static StStockmanagematdetailTable Current
		{
			get
			{
				if (_current == null )
				{
					Initial();
				}
				return _current;
			}
		}

		private static void Initial()
		{
			_current = new StStockmanagematdetailTable();

			_current.Add(C_STOCKMANAGEMATDETAILID, new ColumnInfo(C_STOCKMANAGEMATDETAILID, "", true, typeof(Decimal?)));
			_current.Add(C_MATERIALID, new ColumnInfo(C_MATERIALID, "", false, typeof(String)));
			_current.Add(C_INSTOCKYEAR, new ColumnInfo(C_INSTOCKYEAR, "", false, typeof(Decimal?)));
			_current.Add(C_INSTOCKMONTH, new ColumnInfo(C_INSTOCKMONTH, "", false, typeof(Decimal?)));
			_current.Add(C_PRICE, new ColumnInfo(C_PRICE, "", false, typeof(Decimal?)));
			_current.Add(C_LASTINSTOCKNUM, new ColumnInfo(C_LASTINSTOCKNUM, "", false, typeof(Decimal?)));
			_current.Add(C_LASTINSTOCKAMOUNT, new ColumnInfo(C_LASTINSTOCKAMOUNT, "", false, typeof(Decimal?)));
			_current.Add(C_THISINSTOCKNUM, new ColumnInfo(C_THISINSTOCKNUM, "", false, typeof(Decimal?)));
			_current.Add(C_THISINSTOCKAMOUNT, new ColumnInfo(C_THISINSTOCKAMOUNT, "", false, typeof(Decimal?)));
			_current.Add(C_OUTSTOCKNUM, new ColumnInfo(C_OUTSTOCKNUM, "", false, typeof(Decimal?)));
			_current.Add(C_OUTSTOCKAMOUNT, new ColumnInfo(C_OUTSTOCKAMOUNT, "", false, typeof(Decimal?)));
			_current.Add(C_BALANCESTOCKNUM, new ColumnInfo(C_BALANCESTOCKNUM, "", false, typeof(Decimal?)));
			_current.Add(C_BALANCESTOCKAMOUNT, new ColumnInfo(C_BALANCESTOCKAMOUNT, "", false, typeof(Decimal?)));
						
		}

		public ColumnInfo STOCKMANAGEMATDETAILID
		{
			get { return this[C_STOCKMANAGEMATDETAILID];}
		}

		public ColumnInfo MATERIALID
		{
			get { return this[C_MATERIALID];}
		}

		public ColumnInfo INSTOCKYEAR
		{
			get { return this[C_INSTOCKYEAR];}
		}

		public ColumnInfo INSTOCKMONTH
		{
			get { return this[C_INSTOCKMONTH];}
		}

		public ColumnInfo PRICE
		{
			get { return this[C_PRICE];}
		}

		public ColumnInfo LASTINSTOCKNUM
		{
			get { return this[C_LASTINSTOCKNUM];}
		}

		public ColumnInfo LASTINSTOCKAMOUNT
		{
			get { return this[C_LASTINSTOCKAMOUNT];}
		}

		public ColumnInfo THISINSTOCKNUM
		{
			get { return this[C_THISINSTOCKNUM];}
		}

		public ColumnInfo THISINSTOCKAMOUNT
		{
			get { return this[C_THISINSTOCKAMOUNT];}
		}

		public ColumnInfo OUTSTOCKNUM
		{
			get { return this[C_OUTSTOCKNUM];}
		}

		public ColumnInfo OUTSTOCKAMOUNT
		{
			get { return this[C_OUTSTOCKAMOUNT];}
		}

		public ColumnInfo BALANCESTOCKNUM
		{
			get { return this[C_BALANCESTOCKNUM];}
		}

		public ColumnInfo BALANCESTOCKAMOUNT
		{
			get { return this[C_BALANCESTOCKAMOUNT];}
		}

		
	}
}


